package demo6;

public class Wugui implements Runnable{
    Integer firstLen = 0;
    Integer speed = 5;
    int i = 0;
    @Override
    public void run() {
        try {
            while (true) {
                Thread.sleep(1000);
                i+=1;
                firstLen = i * speed;
                if (firstLen % 10 == 0) {
                    System.out.println("乌龟跑了" + firstLen);
                }
                if (firstLen >= 100) {
                    break;
                }
            }

        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
